package D240506.stairClamber;

public class Stair {
    int layer;
    int i;

    public Stair(int layer) {
        this.layer = layer;
    }

    public long factorial(long a) {
        if (a == 1 || a == 0) {
            return 1;
        } else {
            long result = factorial(a - 1) * a;
            return result;
        }
    }
    /*public void climb() {
        if (this.layer == 1) {
            System.out.println(1);
        } else if (this.layer == 2) {
            System.out.println(2);
        }else if (this.layer % 2 == 0){
            System.out.println(2+factorial(a-1));
        }
    }*/
}
